/*
 * ModuleMapper.java
 *
 * Copyright 2012 the original author or authors(ninglong).
 *
 * Licensed under the org.geek.module.mapper, Version 1.0 (the "License");
 *
 */
package org.geek.core.mybatis.mapper;

import java.util.List;

import org.geek.core.annotation.MyBatisUtil;
import org.geek.core.mybatis.domain.Criteria;
import org.geek.core.mybatis.domain.Module;

/**
 * <p></p>
 * @author ninglong bhd2973@qq.com
 * @version V1.0
 */
@MyBatisUtil
public interface ModuleMapper {

	int countModuleByCriteria(Criteria criteria);
	
	List<Module> getModuleByCriteria(Criteria criteria);
	
	int modModule(Module module);
	
	int addModule(Module module);
	
	int delModuleByModuleId(int moduleId);
	
	int delModuleAndRoleByModuleId(int moduleId);
	
	List<Module> getModuleByAuth(int userId);
}
